//
//  GMStudyResModel.h
//  Teecloud
//
//  Created by 小熊 on 2018/10/16.
//  Copyright © 2018年 小志. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GMStudyResModel : NSObject
/**文档页数/课程包资源数*/
@property (nonatomic, strong) NSNumber *PageCount;
@property (nonatomic, copy) NSString *ResTypeName;
@property (nonatomic, copy) NSString *HeadUrl;
@property (nonatomic, copy) NSString *Id;
@property (nonatomic, copy) NSString *Name;
@property (nonatomic, strong) NSNumber *ResType;
/**IsBuyed=true显示”已购“，否则：Price=0显示”免费“，>0显示价格；*/
@property (nonatomic, assign) BOOL IsBuyed;
/**NormalCode>0时显示”异常“角标，点击提示（=1："关联资源已下架或不可用。";=2:"当前手机型 号非购买资源所用手机型号，你可以到“我的 - 主页 - 个人资料(付费资源管理)”模块申请变更手机型号。"*/
@property (nonatomic, assign) NSInteger NormalCode;
/**IsShare=true&&IsBuyed=false：显示”分享“角标；*/
@property (nonatomic, assign) BOOL IsShare;
@property (nonatomic, strong) NSNumber *RelType;
/**视频时长*/
@property (nonatomic, strong) NSNumber *TimeLen;
/**IsAd=true时显示横条广告图片，点击处理参见“三、轮播广告”部分；*/
@property (nonatomic,  assign) BOOL IsAd;
@property (nonatomic,  assign) BOOL IsFree;
@property (nonatomic, strong) NSNumber *Price;
/**题集题目数/试卷试题数*/
@property (nonatomic, strong) NSNumber *ExerCount;
/**根据AvgScore构建（10分制）；*/
@property (nonatomic, assign) CGFloat AvgScore;

@property (nonatomic,  assign) BOOL IsAdded;
@property (nonatomic, strong) NSNumber *AdId;
@end
